<%@page import="org.apache.commons.lang.StringUtils"%>
<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.util.*" %>
<%@ page language="java" import="java.io.*" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	//收款人
	String payee = request.getParameter("_p");
	if(StringUtils.isEmpty(payee)){
		payee = "";
	}
	
	//微信授权跳转获得code
	String api_code = request.getParameter("code");
	if(StringUtils.isEmpty(api_code)){
		api_code = "";
	}
	
	//Map pmap = request.getParameterMap();
	
	request.setAttribute("on_back", "1");
%>
<!DOCTYPE html>
<html lang="zh">
<head>
<base href="<%=basePath%>">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<title>微信支付</title>

<meta name="description" content="Common form elements and layouts" />
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<script type="text/javascript" src="js/jquery-1.7.1.min.js"
	charset="UTF-8"></script>
<%
	out.write("<script type=\"text/javascript\">");
	out.write("var payee='" + payee + "';");
	out.write("var api_code='" + api_code + "';");
	out.write("</script>");
%>
<script type="text/javascript" src="js/core-1.0.js" charset="UTF-8"></script>
<script type="text/javascript" src="js/core/loadForm.js" charset="UTF-8"></script>
<script type="text/javascript" src="js/core/utils.js" charset="UTF-8"></script>
<script type="text/javascript" src="js/user/user-info.js" charset="UTF-8"></script>
<script type="text/javascript" src="js/remote/wx_public.js"
	charset="UTF-8"></script>
	
<script type="text/javascript">

	
</script>

<!-- bootstrap & fontawesome -->
<link rel="stylesheet" href="ace_v1.3/assets/css/bootstrap.css" />

<link rel="stylesheet" href="ace_v1.3/assets/css/chosen.css" />

<!-- text fonts -->
<link rel="stylesheet" href="ace_v1.3/assets/css/ace-fonts.css" />

<link rel="stylesheet" href="ace_v1.3/assets/css/font-awesome.css" />
<link rel="stylesheet" href="css/webpay/core.1.0.css" />
<link rel="stylesheet" href="css/dialog.css" />
<!-- ace styles -->
<link rel="stylesheet" href="ace_v1.3/assets/css/ace.css"
	class="ace-main-stylesheet" id="main-ace-style" />



<!--[if lte IE 9]>
			<link rel="stylesheet" href="ace_v1.3/assets/css/ace-part2.css" class="ace-main-stylesheet" />
		<![endif]-->

<!--[if lte IE 9]>
		  <link rel="stylesheet" href="ace_v1.3/assets/css/ace-ie.css" />
		<![endif]-->



<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->

<!--[if lte IE 8]>
		<script src="ace_v1.3/assets/js/html5shiv.js"></script>
		<script src="ace_v1.3/assets/js/respond.js"></script>
		<![endif]-->

<jsp:include page="../plug/head-include.jsp" />
<style type="text/css">
input{
	border: 1px solid;
}
.payeeInfoBox{
	text-align: center;
	font-size: 16px;
	font-weight: 700;
	padding-bottom: 0px;
	margin-bottom: 20px;
}
</style>
</head>

<body class="no-skin">
	<!-- #section:basics/navbar.layout -->
	<%-- <jsp:include page="../plug/title.jsp" /> --%>

	<!-- /section:basics/navbar.layout -->
	<div class="main-container" id="main-container">

		<!-- #section:basics/sidebar -->
		<!-- /section:basics/sidebar -->
		<div class="main-content">
			<div class="main-content-inner">
				<!-- #section:basics/content.breadcrumbs -->
				<!-- /section:basics/content.breadcrumbs -->
				<div class="page-content">
					<!-- #section:settings.box -->
					<!-- <div class="page-header">
						<h1>
							Form Elements <small> <i
								class="ace-icon fa fa-angle-double-right"></i> Common form
								elements and layouts
							</small>
						</h1>
					</div>
					 -->
					<!-- /.page-header -->
					<div class="row" style="border-bottom: 1px solid gray;">
						<div class="col-xs-12" style="text-align: center;padding-top: 0px;">
							<div class="payeeInfoBox col-sm-8 col-xs-12 col-sm-offset-2">
								<img alt="" src="images/menu/pay_weixin.jpg" width="80" />
								<div class="payeeInfo">
								
								</div>
							</div>
						</div>
					</div>
					
					<!-- <div
						class="row-space clear-padding-left clear-padding-right clear-padding-top"></div> -->
					<form class="form-horizontal" id="orderPayForm" role="form" method="post" action="PY0304.web">
						<div class="row">
								<input type="hidden" name="payType" value="04"/>
								<input type="hidden" name="chl" value="WFT"/>
								<input type="hidden" name="fn" value="create_public"/>
								<input type="hidden" name="service" value="order.pay"/>
								<input type="hidden" id="input_payee" name="payeePhone" validate="true" />
								<!-- 费率类型 9:无卡类 -->
								<!-- <input type="hidden" name="rateType" value="9"/> -->
								
								<div class="form-group">
									<div class="col-sm-8 col-xs-12 col-sm-offset-2">
										<!-- <span class="input-group-addon">
											<i class="ace-icon fa fa-phone"></i>
										</span> -->
										<input type="text" name="payAmt" validate="true" value=""
											placeholder="请输入付款金额" class="form-control" />
									</div>
								</div>
								
								<div class="form-group">
									<div class="col-sm-8 col-xs-12 col-sm-offset-2">
										<!-- <span class="input-group-addon">
											<i class="ace-icon fa fa-phone"></i>
										</span> -->
										<input type="text" name="orderDesc" validate="true" value=""
											placeholder="请输入交易描述" class="form-control" />
									</div>
								</div>
								
								<div class="col-sm-8 col-xs-12 col-sm-offset-2 space-1"></div>
								
								<div
									class="clearfix col-sm-8 col-xs-12 col-sm-offset-2 menu-btn-box">
									<button id="btn_pay" class="btn btn-info btn-lg btn-block" type="button"
										>
										<i class="ace-icon fa fa-check "></i> 付款
									</button>
								</div>
								<!-- /.col -->
							</div>
					</form>
					
					<!-- /.row -->
				</div>
				
				<!-- /.page-content -->
			</div>
		</div>
		<!-- /.main-content -->


	</div>
	
	<!-- /.main-container -->

	<!-- basic scripts -->
	<script type="text/javascript" src="js/dialog.js" charset="UTF-8"></script>
	
	<script type="text/javascript"
		src="ace_v1.3/assets/js/jquery.maskedinput.js" charset="UTF-8"></script>
	<script type="text/javascript" src="js/jquery.tips.js" charset="UTF-8"></script>
	<link rel="stylesheet" type="text/css" href="css/dialog.css" />
	<link rel="stylesheet" type="text/css" href="css/webpay/core.1.0.css" />
</body>
</html>
